using System.Web.Routing;
using RouteMagic;
using TSharp.Core.Mvc;
using TSharp.Core.Mvc.MvcCaptcha;

[assembly: RegRoute(typeof(ResgiterMvcCaptcha), Order = -1000)]

namespace TSharp.Core.Mvc.MvcCaptcha
{
    public class ResgiterMvcCaptcha : IRouteRegister
    {
        public void RegisterRoutes(RouteCollection routes)
        {
            routes.Map("_MvcCaptcha", "Captcha/{action}", new
            {
                controller = "_MvcCaptcha",
                action = "MvcCaptchaImage"
            },
                               null, new[] { "TSharp.Core.Mvc.MvcCaptcha" });
        }
    }
}